#include "../bsp/clk/bsp_clk.h"
#include "../bsp/delay/bsp_delay.h"
#include "../bsp/int/bsp_int.h"
#include "../bsp/key/bsp_key.h"
#include "../bsp/lcd/bsp_lcd.h"
#include "../bsp/lcd/bsp_lcdapi.h"
#include "../bsp/led/bsp_led.h"
#include "../bsp/pwm/bsp_pwm.h"
#include "../bsp/uart/ibsp_uart.h"
#include "../stdio/include/stdio.h"

/*
 * @description	: main函数
 * @param 		: 无
 * @return 		: 无
 */
int main(void) {

  int_init();      /* 初始化中断(一定要最先调用！) */
  imx6u_clkinit(); /* 初始化系统时钟 			*/
  clk_enable();    /* 使能所有的时钟 			*/
  led_init();      /* 初始化led 			*/
  uart_init(UART1);

  lcd_init();

  unsigned int color = 0;

  lcd_draw_Circle(200, 200, 100);

  printf("color=%#X \r\n", color);
  while (1) {
    led_switch(LED0, 1);
    delay_ms(500);
    led_switch(LED0, 0);
    delay_ms(500);
  }
  return 0;
}
